/*
 * @Author: yc
 * @Date: 2020-05-31 12:03:10
 * @LastEditTime: 2020-05-31 12:23:38
 * @FilePath: \react-admin\src\requests\api\user.js
 */

import http from '../index'

// 登录
export const handleLogin = ({ userName, password }) => {
  return http({
    url: '/api/user/login',
    method: 'post',
    data: {
      userName,
      password
    }
  })
}

export const getUserList = () => {
  return http({
    url: '/api/user/getUserList',
    method: 'get'
  })
}